package smtp;

import java.io.IOException;
import java.net.UnknownHostException;

import bean.Message;

public class Teste {

	public static void main(String[] args) {
		DNS d = new DNS();
		d.DNSLookup();
//		d.getMXServers("gmail.com");
//		d.getIPAddresses("gmail-smtp-in.l.google.com.");
//		d.getMXServers("hotmail.com");
//		d.getIPAddresses("gmx4.hotmail.com.");
		
		Message m = new Message("postmaster@arthur.com", "taizelcg@gmail.com", "redes i", "teste");
		Message m2 = new Message("postmaster@arthur.com", "taizel@arthur.com", "redes i", "teste");
		Envelope e;
		try {
			e = new Envelope(m,"localhost.com");
			SMTPConnection smtp = new SMTPConnection(e);
		} catch (UnknownHostException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (IOException e2) {
			// TODO Auto-generated catch block
			e2.printStackTrace();
		}
		
	}

}
